import java.util.Scanner;
public class demo7{
    public static void main (String[] args){
       Scanner x = new Scanner(System.in);
       String s = x.nextLine();
       s=reverse(s);
       System.out.println(s);
    }
    public static String reverse(String a){
    StringBuilder b = new StringBuilder(a);
    b.reverse();
    a=b.toString();
    return a;
    }
}